package com.cskaoyan.bean.admin.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateAdminBo {

    /**
     * id : 10
     * username : linusss
     * avatar : http://182.92.235.201:8083/wx/storage/fetch/063s3fvmu8makijuxlo0.jpg
     * roleIds : [1,11]
     * password : 123456
     */

    private int id;
    @NotNull
    @Email
    private String username;
    private String avatar;
    @NotNull
    @Length(min = 6, max = 9)
    private String password;
    private Integer[] roleIds;
}
